//
//  RequestManager.h
//  MyPizzaMobile
//
//  Created by Stanislav on 2/15/13.
//  Copyright (c) 2013 Stanislav. All rights reserved.
//

#import "JSONKit.h"
#import "Constants.h"

@interface RequestManager : NSObject
+(RequestManager*)requestManagerInstance;
- (BOOL) sendRegistrationWithDict:(NSDictionary *) dict;
- (BOOL) sendLoginWithDict:(NSDictionary *) dict;
- (BOOL) updateUserFromDictionary:(NSDictionary*)dict;
- (NSDictionary*) getAllPizzaSupplements;
- (void) getPizzaSupplementsById:(NSInteger) pizzaId;
- (BOOL) orderPizza;

// Utility functions:
- (NSString*) escape:(NSString *)stringToEscape;
- (NSString*) unescape:(NSString *)string;
- (double) getShippingPrice;
@property NSMutableDictionary * orderSupplements;
@property NSMutableDictionary * orderPizzas;
@end
